<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]
<script type="text/javascript">
	$(function() {
		$("#orderItemGrid").ligerGrid({
	        columns: [
				{name: 'id', hide: true, width:0, isAllowHide: false},
				{name: 'goods.path', hide: true, width:0, isAllowHide: false},
				{display: '图片', name: 'imagePath', align: 'left', width: 110, 
					render: function(row, rowindex, value, column) {
						return "<img style='height:100px;width:100px;' src='"+value+"'>";
				} },
				{display: '货品编号', name: 'productCode', align: 'center', width: 140 },
				{display: '批次号', name: 'batch', align: 'center', width: 140 },
				{display: '货品名称', name: 'productName', align: 'left', width: 200,
					render : function(row){
						return "<a target='_blank' href='" + row["goods.path"] + "'>" + row["productName"] + "</a>";
					}
				},
				{display: '有效日期', name: 'validDate', align: 'center', dataFormat: 'yyyy-MM-dd', width: 140 },
				{display: '规格', name: 'specification', align: 'center', width: 140 },
				{display: '单价(元)', name: 'salePrice', align: 'center', width: 100},
				{display: '数量', name: 'quantity', align: 'center', width: 70},
				{display: '总价(元)', name: 'subtotal', align: 'center', width: 100 },
			],  
			usePager: false, 
			url: 'queryOrderItem.jhtml?id='+ "${id}",
			width: '100%',
			checkbox: false
	    }); 
	});
</script>
</head>
<body style="padding:10px; overflow:auto;">		
	<div id="orderItemGrid" style="margin:0; padding:0;">
	</div>
</body>
</html>